home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ispoll_1 / _setup.1 / Poll.asp < prev    next >
Encoding:
Text File  |  1999-03-21  |  1.3 KB  |  37 lines

  1. <% 
  2.     'required if you want to ensure that a cookie is placed on the browser.
  3.     Response.Buffer = True
  4.  %>
  5. <HTML>
  6. <BODY><H1>Sample PollCat Poll</H1>
  7. <H4>This sample shows how you can draw a table with borders turned on to give the poll a cell to draw its elements.  The component is instantiated in a table cell.  
  8. Set the poll ID and you are done.<P>
  9. You will need to delete your cookie to get the poll to come up again in input mode.</H4>
  10. <TABLE WIDTH=70 BORDER=1>
  11.     <TR><TD valign=top>
  12.     <% 
  13.         'instantiate the poll
  14.         Set PollCat = Server.CreateObject("isPollCat.UI")
  15.         
  16.         'To bypass the server default data path, set a path to your PollCat data files here.
  17.         'PollCat.DataPath = "e:\data\polldata\"
  18.         
  19.         'If you want to only show the results of Polls and not collect more responses, set this
  20.         'property to True; it is false by default.
  21.         'PollCat.ResultsOnly = True
  22.         
  23.         'If you do not want to show the total number of votes taken but only want to show
  24.         'the percentages, set this property to False; it is true by default
  25.         'PollCat.ShowTotals = False
  26.  
  27.         'set the reference to the PollCat ID as noted within Administration
  28.         PollCat.ID = 1 
  29.         
  30.         'This is simply a courtesy to the ASP environment
  31.         Set PollCat = Nothing    
  32.     %>
  33.         </td>
  34.     </tr>
  35. </TABLE>
  36. </BODY>
  37. </HTML>